<h1>Groups</h1>
<!-- <a href="<%= link :edit, :group %>" class="button">Create a group</a> -->
<br>
<% if @results %>
<div class="general-table">
<table>
<thead><th>Portrait</th><th>Name</th><th>Description</th><th>Moderator</th><th>Details</th></thead>
<%
 @results.each do |result|
  user = result.get_sponsor()
  write "<tr><td>"
  write "<img src='#{result.depiction}' width='60'/>" if result.depiction 
  write "</td>"
  write "<td><a href='/#{result.uid}'>#{result.title}</a></td>"
  write "<td>#{result.description}</td><td><a href='/#{user.login}'>#{user.login}</a></td>"
  write "<td>"
  show_details(result, 'foo')
  write"</td>"
  write "</tr>"
 end

%>
</table>
<table>
<%
#zebra_table(@results, "Portrait|Name|Description|Moderator|Details", "depiction|title|description|sponsor|details")
%>
</table>
</div>
<% end %>
